from flask import Flask
from dao import db
from controller import algorithm
from config import Config
from flask_cors import CORS

app = Flask(__name__)
CORS(app, resources=r'/*')
app.register_blueprint(algorithm)
app.config.from_object(Config)
db.init_app(app)

if __name__ == '__main__':
    app.run()
